import request from '@/utils/request'

const PATH = '/pms/brand'

export function pageBrandREQ(params) {
  return request({
    url: PATH,
    method: 'get',
    params
  })
}

export function createBrandREQ(data) {
  return request({
    url: PATH,
    method: 'post',
    data
  })
}
export function getBrandByIdREQ(id) {
  return request({
    url: `${PATH}/${id}`,
    method: 'GET'
  })
}

export function updateBrandREQ(data) {
  return request({
    url: PATH,
    method: 'put',
    data
  })
}

export function deleteBrandREQ(id) {
  return request({
    url: `${PATH}/${id}`,
    method: 'delete'
  })
}

